﻿<div ng-controller="licenceSendController">
    <div class="row">
        <div class="col-md-12">
            <div class="panel panel-inverse">
                <div class="panel-heading">
                    <div class="panel-heading-btn">
                        <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-default"
                           data-click="panel-expand"><i class="fa fa-expand"></i></a>
                    </div>
                    <h4 class="panel-title">发送兴业文件服务</h4>
                </div>
                <div class="panel-body">
                    <table id="data-table" ng-table="tableParams" template-pagination="template/pagination.html"
                           class="table table-striped table-bordered table-hover table-condensed">
                        <tr ng-repeat="item in $data">
                            <td data-title="'序号'" width="10%" class="text-center">{{ first + $index }}</td>
                            <td data-title="'企业编号'" sortable="'id'" class="text-center">{{ item.id }}
                            </td>
                            <td data-title="'企业名称'" sortable="'enterprise_name'" class="text-center">
                                {{ item.enterprise_name }}
                            </td>
                            <td data-title="'发送状态'" sortable="'send_licence'" class="text-center">
                                {{ item.send_licence==1?"发送成功":"未发送成功" }}
                            </td>
                            <td class="text-center width-100 text-nowrap">
                                <button class="btn btn-info btn-xs" ng-click="show(item)"><i class="fa fa-edit"></i> 查看详情</button>
                            </td>
                        </tr>
                    </table>
                </div>
                <div class="modal fade" id="modal-show">
                    <div class="modal-dialog" style="width:1100px">
                        <div class="modal-content">
                            <ng-form name="checkForm" novalidate>
                                <div class="modal-header">
                                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                                    <h4 class="modal-title"><i class="fa fa-lg fa-edit text-success"></i>&nbsp;&nbsp;{{model.enterprise_name}}--上传详情</h4>
                                </div>
                                <div class="modal-body">
                                    <div class="row">
                                        <div class="col-sm-12">
                                            <ul>
                                                <li style="float:left;" ng-repeat="item in licences">
                                                     {{item.type_name}}
                                                    <div class="tb-booth tb-pic tb-s150" ngf-select="uploadFiles($files, $invalidFiles,item)" ngf-pattern="'image/*'" accept="image/jpeg,image/gif,image/png" ngf-max-size="10MB">
                                                       <img class="jqzoom" src="{{item.file_path?item.file_path:'assets/img/upload.png'}}" rel="{{item.file_path}}" alt="未上传" />
                                                    </div>
                                                    点击图片上传或替换
                                                    上传状态:{{item.send_status==1?'成功':'失败'}}<br/>
                                                    <button ng-click="sendSingleLicence(model,item)">点击发送</button>
                                                </li>
                                            </ul>
    
                                        </div>

                                    </div>

                                </div>
                                <div class="modal-footer">
                                    <button class="btn btn-sm btn-white" data-dismiss="modal"><i class="fa fa-share-square-o"></i> 关闭</button>
                                </div>
                            </ng-form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

